class HotbooksController < ApplicationController
  def new
    @user = current_user
    @number = params[:number].to_i
    @categories = Category.all
    @hot_books = Book.search_hot_book()
    @hotbooks = Book.search_hot_book_2(@number).page(params[:page]).per(10)

  end
end
